home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…rary 6 (Reseller Edition) / Apple Ref. & Pres. Lib.v6.0.toast / pc / 3-Presentations / Apple Demos / Training / LaserWriter Training / LaserWriter Fundamentals / Glossary / stack_-1.xml < prev    next >
Extensible Markup Language  |  1990-08-24  |  4KB  |  16 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>176</cardCount>
  7.     <cardID>10834</cardID>
  8.     <listID>2049</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>__________________________________________________________________‚Äî‚Äî TABLE OF CONTENTS____________________________________________________________________________________________________________________________________‚Äî‚Äî GLOSSARY TOOLShandleFieldClickgoGlossaryEntryshowGlossWord__________________________________________________________________‚Äî‚Äî GLOSSARY CREATION TOOLSmakeGlossaryimportGlossaryexitStackgoNextgoPrev__________________________________________________________________‚Äî‚Äî UTILITIESlineNo__________________________________________________________________‚Äî‚Äî PROGRAMMING TOOLS (can be deleted before distribution)lockAllFieldsunlockAllFields--‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî--‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚Äî‚ÄîopenStackarrowKeyreturnKeyenterKeydoMenu______________________________________________________________________________________________________________________________________________________________________________________________________‚Äî‚Äî GLOSSARY TOOLSon handleFieldClicklock screenset cursor to noneset locktext of target to falseclick at the clickLocclick at the clickLocput the selection into myWordput the selectedChunk into myChunkset lockText of target to trueput word 4 of myChunk into lastCharunlock screenif char (lastChar + 1) of target is "*" then showGlossWord myWordend handleFieldClickon goGlossaryEntrylock screenpush cardput line lineNo() of target into findWhatfind findWhat in fld "subTitle"click at 1,342unlock screen with visual dissolveend goGlossaryEntryon showGlossWord glossWordlock screenfind whole glossWord in fld "Subtitle"click at 1,300unlock screen with visual dissolveend showGlossWord__________________________________________________________________‚Äî‚Äî GLOSSARY CREATION TOOLSon makeGlossaryput empty into krepeat with i = 105 to 272go cd iput the short id of this cd into startIDput fld "Subtitle" into whatToFindfind whole whatToFind  -- find first occurrence on same card--    wait 75repeatfind whole whatToFind--      wait 15if the number of this cd < 97 thenput whatToFind & "," & id of this cd & "," & short ¬¨name of this cd & return after kend ifif the short id of this cd is startID then exit repeatend repeat--    put the short name of this cdend repeatgo lastput k into cd fld "GlossaryInfo"end makeGlossaryon importGlossaryput "Zowie:Glossary" into fNameopen file fNamerepeat  -- with i = 1 to 5read from file fName until returnif it is empty then exit repeatput it into kput char 1 to offset(":",k)-1 of k into myWordput char offset(":",k)+1 to 10000 of k into myDef--  delete last char of myDefput word 1 to 1000 of myDef into myDefdoMenu "New Card"put myWord into fld "subtitle"put myDef into fld "cardtext"put "Glossary" into fld 1end repeatclose file fNameend importGlossaryon goNextlock screengo nextunlock screen with visual wipe leftend goNexton goPrevlock screengo Prevunlock screen with visual wipe rightend goPrev__________________________________________________________________‚Äî‚Äî UTILITIESfunction lineNoif the style of the target is "scrolling" thenreturn ((item 2 of the clickloc - item 2 of the rect of the target ¬¨+ the scroll of the target)  DIV textheight of